﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using TwitterNameTableAdapters;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

        MessagesTableAdapter MessageAdapter1 = new MessagesTableAdapter();
        GridView GridView1 = new GridView();
        try
        {
            GridView2.DataSource = MessageAdapter1.GetDataBy_id_for_user(555);
            //MessageAdapter1.Insert();
            //MessageAdapter1.InsertQueryMSG(1, "test", 1, -1);
            GridView2.DataBind();
           
        
            Response.Write("Значение параметра id = " + Request.QueryString["id"]);
        }
        catch (Exception) { ;}
    }
}
